{
  "name": "Case 11 – Startup Accelerator Selection",
  "nodes": [
    {
      "name": "On form submission",
      "type": "n8n-nodes-base.formTrigger",
      "typeVersion": 2,
      "position": [0, 0],
      "parameters": {
        "formTitle": "Startup Accelerator Application",
        "formDescription": "Upload startup application for accelerator selection",
        "formFields": {
          "values": [
            { "fieldLabel": "Startup Name", "requiredField": true },
            { "fieldLabel": "Founder Name", "requiredField": true },
            { "fieldLabel": "Email id", "fieldType": "email", "requiredField": true },
            {
              "fieldLabel": "Startup_Application",
              "fieldType": "file",
              "acceptFileTypes": ".pdf",
              "requiredField": true
            }
          ]
        }
      }
    },
    {
      "name": "Upload file",
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 3,
      "position": [220, 0],
      "parameters": {
        "inputDataFieldName": "Startup_Application",
        "name": "={{ $json['Startup Name'] + '_Accelerator_Application' }}",
        "folderId": "REPLACE_WITH_ACCELERATOR_APPLICATIONS_FOLDER_ID"
      }
    },
    {
      "name": "Download file",
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 3,
      "position": [420, 0],
      "parameters": {
        "operation": "download",
        "fileId": "={{ $json.id }}"
      }
    },
    {
      "name": "Extract Startup Application",
      "type": "n8n-nodes-base.extractFromFile",
      "typeVersion": 1,
      "position": [620, 0],
      "parameters": {
        "operation": "pdf"
      }
    },
    {
      "name": "Download Accelerator Focus Areas",
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 3,
      "position": [820, 0],
      "parameters": {
        "operation": "download",
        "fileId": "REPLACE_WITH_ACCELERATOR_FOCUS_FILE_ID"
      }
    },
    {
      "name": "Extract Accelerator Focus",
      "type": "n8n-nodes-base.extractFromFile",
      "typeVersion": 1,
      "position": [1020, 0],
      "parameters": {
        "operation": "pdf"
      }
    },
    {
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 3,
      "position": [220, 260],
      "parameters": {
        "promptType": "define",
        "text": "=Startup Application:\n{{ $('Extract Startup Application').item.json.text }}\n\nAccelerator Focus Areas & Selection Criteria:\n{{ $('Extract Accelerator Focus').item.json.text }}",
        "options": {
          "systemMessage": "You are a Startup Accelerator Selection Committee Member.\n\nYOUR OBJECTIVE:\nSelect early-stage startups with strong founders, scalable business models, and alignment with the accelerator’s focus areas, such that the cohort maximizes learning outcomes and future funding success.\n\nANALYSIS FRAMEWORK (MANDATORY):\n1. FOUNDER QUALITY – background, execution ability, founder-market fit, and resilience.\n2. PROBLEM & SOLUTION CLARITY – clarity of problem statement and differentiation of solution.\n3. SCALABILITY – size of opportunity, repeatability of business model, and growth potential.\n4. TRACTION SIGNALS – early revenue, pilots, user growth, or strong customer validation.\n5. ACCELERATOR FIT – alignment with accelerator themes, mentor network, and cohort objectives.\n\nYOU MUST PRODUCE ONE JSON OBJECT WITH EXACTLY THESE FIELDS. ALL FIELDS ARE MANDATORY.\n\nJSON SCHEMA (STRICT):\n{\n  \"Startup_Name\": \"string\",\n  \"Founder_Name\": \"string\",\n  \"Startup_Stage\": \"Idea | MVP | Early Revenue | Growth\",\n  \"Industry_or_Domain\": \"string\",\n  \"Scalability_Potential\": \"Low | Medium | High\",\n  \"Founder_Quality_Assessment\": \"Weak | Moderate | Strong\",\n  \"Product_Differentiation\": \"Low | Medium | High\",\n  \"Early_Traction_Level\": \"None | Limited | Strong\",\n  \"Accelerator_Fit\": \"Low | Medium | High\",\n  \"Overall_Application_Score_out_of_100\": \"number\",\n  \"Selection_Decision\": \"Invite to Demo Day | Reject\",\n  \"Committee_Remarks\": \"string\"\n}\n\nINSTRUCTIONS:\n- Numeric fields MUST contain numbers only.\n- Do NOT add, remove, or rename fields.\n- Output ONLY valid JSON.\n- IMMEDIATELY call the Google Sheets Append Row tool using this JSON."
        }
      }
    },
    {
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "typeVersion": 1,
      "position": [0, 420],
      "parameters": {
        "model": {
          "mode": "list",
          "value": "gpt-4.1-mini"
        }
      }
    },
    {
      "name": "Append row",
      "type": "n8n-nodes-base.googleSheetsTool",
      "typeVersion": 4,
      "position": [420, 460],
      "parameters": {
        "operation": "append",
        "documentId": "REPLACE_WITH_GOOGLE_SHEET_ID",
        "sheetName": "Startup Accelerator Application Evaluation Register"
      }
    },
    {
      "name": "Send Email",
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2,
      "position": [420, 260],
      "parameters": {
        "sendTo": "={{ $('On form submission').item.json['Email id'] }}",
        "subject": "Startup Accelerator Application – Selection Outcome",
        "message": "={{ 'Dear ' + $('On form submission').item.json['Founder Name'] + ',<br><br>Thank you for applying to our startup accelerator. Your application has been reviewed by the selection committee. We will reach out shortly regarding the next steps.<br><br>Accelerator Selection Committee' }}"
      }
    }
  ],
  "connections": {
    "On form submission": { "main": [[{ "node": "Upload file" }]] },
    "Upload file": { "main": [[{ "node": "Download file" }]] },
    "Download file": { "main": [[{ "node": "Extract Startup Application" }]] },
    "Extract Startup Application": { "main": [[{ "node": "Download Accelerator Focus Areas" }]] },
    "Download Accelerator Focus Areas": { "main": [[{ "node": "Extract Accelerator Focus" }]] },
    "Extract Accelerator Focus": { "main": [[{ "node": "AI Agent" }]] },
    "OpenAI Chat Model": { "ai_languageModel": [[{ "node": "AI Agent" }]] },
    "Append row": { "ai_tool": [[{ "node": "AI Agent" }]] },
    "AI Agent": { "main": [[{ "node": "Send Email" }]] }
  },
  "active": false
}
